<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>忘记密码 - 创界科技</title>
    <style>
        /* 基础样式与变量定义 - 与主站保持一致 */
        :root {
            --primary: #FF6B6B;
            --secondary: #4ECDC4;
            --accent: #FFE66D;
            --dark: #292F36;
            --light: #F7FFF7;
            --border-width: 4px;
            --shadow-offset: 8px;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Courier New', monospace;
        }

        body {
            background-color: var(--light);
            color: var(--dark);
            padding: 20px;
            line-height: 1.6;
            min-height: 100vh;
            display: flex;
            flex-direction: column;
        }

        /* 新野蛮主义核心样式类 */
        .neu-card {
            border: var(--border-width) solid var(--dark);
            border-radius: 12px;
            background-color: white;
            box-shadow: var(--shadow-offset) var(--shadow-offset) 0px var(--dark);
            transition: all 0.2s ease;
        }

        .neu-card:hover {
            transform: translate(2px, 2px);
            box-shadow: calc(var(--shadow-offset) - 2px) calc(var(--shadow-offset) - 2px) 0px var(--dark);
        }

        .neu-button {
            display: inline-block;
            padding: 12px 24px;
            border: var(--border-width) solid var(--dark);
            border-radius: 8px;
            background-color: var(--primary);
            color: var(--dark);
            font-weight: bold;
            text-decoration: none;
            box-shadow: var(--shadow-offset) var(--shadow-offset) 0px var(--dark);
            transition: all 0.2s ease;
            cursor: pointer;
        }

        .neu-button:hover {
            transform: translate(2px, 2px);
            box-shadow: calc(var(--shadow-offset) - 2px) calc(var(--shadow-offset) - 2px) 0px var(--dark);
        }

        .neu-button.secondary {
            background-color: var(--secondary);
        }

        .neu-button.accent {
            background-color: var(--accent);
        }

        /* 布局样式 */
        .container {
            max-width: 1200px;
            margin: 0 auto;
            flex: 1;
        }

        header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 20px 0;
            margin-bottom: 40px;
            border-bottom: var(--border-width) solid var(--dark);
        }

        .logo {
            font-size: 2rem;
            font-weight: bold;
            color: var(--primary);
            text-shadow: 3px 3px 0px var(--dark);
        }

        nav ul {
            display: flex;
            list-style: none;
            gap: 20px;
        }

        nav a {
            text-decoration: none;
            color: var(--dark);
            font-weight: bold;
            padding: 8px 16px;
            border: var(--border-width) solid transparent;
            transition: all 0.2s ease;
        }

        nav a:hover {
            border: var(--border-width) solid var(--dark);
            background-color: var(--accent);
        }

        section {
            margin-bottom: 80px;
        }

        .section-title {
            font-size: 2.5rem;
            margin-bottom: 40px;
            text-align: center;
            position: relative;
        }

        .section-title::after {
            content: "";
            display: block;
            width: 100px;
            height: 5px;
            background-color: var(--primary);
            margin: 15px auto 0;
        }

        /* 忘记密码页面特定样式 */
        .forgot-password-container {
            display: flex;
            justify-content: center;
            align-items: center;
            min-height: 60vh;
            margin: 40px 0;
        }

        .forgot-password-card {
            width: 100%;
            max-width: 500px;
            padding: 40px;
            text-align: center;
        }

        .forgot-password-title {
            font-size: 2.2rem;
            margin-bottom: 10px;
            color: var(--primary);
        }

        .forgot-password-subtitle {
            margin-bottom: 30px;
            color: #666;
        }

        .form-group {
            margin-bottom: 25px;
            text-align: left;
        }

        .form-label {
            display: block;
            margin-bottom: 8px;
            font-weight: bold;
        }

        .form-input {
            width: 100%;
            padding: 12px 16px;
            border: var(--border-width) solid var(--dark);
            border-radius: 8px;
            font-size: 1rem;
            transition: all 0.2s ease;
        }

        .form-input:focus {
            outline: none;
            box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.3);
        }

        .reset-button {
            width: 100%;
            margin-bottom: 20px;
            font-size: 1.1rem;
        }

        .back-to-login {
            margin-top: 20px;
            color: #666;
        }

        .back-to-login a {
            color: var(--primary);
            font-weight: bold;
            text-decoration: none;
        }

        .back-to-login a:hover {
            text-decoration: underline;
        }

        /* 成功消息样式 */
        .success-message {
            display: none;
            padding: 20px;
            background-color: var(--secondary);
            border: var(--border-width) solid var(--dark);
            border-radius: 8px;
            margin-bottom: 20px;
            text-align: center;
        }

        .success-icon {
            font-size: 3rem;
            margin-bottom: 15px;
        }

        /* 页脚样式优化 - 与主站保持一致 */
        footer {
            text-align: center;
            padding: 40px 0;
            border-top: var(--border-width) solid var(--dark);
            margin-top: 40px;
        }

        .footer-links {
            display: flex;
            justify-content: center;
            gap: 30px;
            margin: 20px 0;
        }

        .footer-links a {
            color: var(--dark);
            text-decoration: none;
            font-weight: bold;
        }

        .footer-links a:hover {
            text-decoration: underline;
        }

        /* 响应式设计 */
        @media (max-width: 768px) {
            .forgot-password-card {
                padding: 30px 20px;
            }

            header {
                flex-direction: column;
                gap: 20px;
            }

            nav ul {
                flex-wrap: wrap;
                justify-content: center;
            }

            .footer-links {
                flex-direction: column;
                gap: 15px;
            }
        }
    </style>
</head>

<body>
    <div class="container">
        <header>
            <div class="logo">创界科技</div>
            <nav>
                <ul>
                    <li><a href="index.html">首页</a></li>
                    <li><a href="about.html">关于我们</a></li>
                    <li><a href="products.html">产品</a></li>
                    <li><a href="services.html">服务</a></li>
                    <li><a href="news.html">新闻动态</a></li>
                    <li><a href="contact.html">联系我们</a></li>
                    <li><a href="job.html">岗位招聘</a></li>
                    <li><a href="login.html">登录</a></li>
                    <li><a href="register.html">注册</a></li>
                    <li><a href="forgot-password.html"
                            style="border: var(--border-width) solid var(--dark); background-color: var(--accent);">忘记密码</a>
                    </li>
                </ul>
            </nav>
        </header>

        <div class="forgot-password-container">
            <div class="forgot-password-card neu-card">
                <h2 class="forgot-password-title">重置密码</h2>
                <p class="forgot-password-subtitle">请输入您的注册邮箱，我们将发送重置链接</p>

                <div class="success-message" id="successMessage">
                    <div class="success-icon">✓</div>
                    <h3>重置链接已发送</h3>
                    <p>我们已向您的邮箱发送了密码重置链接，请检查您的收件箱并按照说明操作。</p>
                    <p>如果您没有收到邮件，请检查垃圾邮件文件夹或<a href="#" id="resendLink">重新发送</a>。</p>
                </div>

                <form id="forgotPasswordForm">
                    <div class="form-group">
                        <label for="email" class="form-label">注册邮箱</label>
                        <input type="email" id="email" class="form-input" placeholder="请输入您的注册邮箱" required>
                    </div>

                    <button type="submit" class="neu-button reset-button">发送重置链接</button>
                </form>

                <div class="back-to-login">
                    <a href="login.html">返回登录页面</a>
                </div>
            </div>
        </div>

        <footer>
            <div class="logo">创界科技</div>
            <div class="footer-links">
                <a href="index.html">首页</a>
                <a href="about.html">关于我们</a>
                <a href="products.html">产品</a>
                <a href="services.html">服务</a>
                <a href="news.html">新闻动态</a>
                <a href="contact.html">联系我们</a>
                <a href="job.html">岗位招聘</a>
            </div>
            <p>地址：北京市海淀区科技园区创新大厦15层</p>
            <p>电话：010-12345678 | 邮箱：contact@chuangjie-tech.com</p>
            <p style="margin-top: 20px;">© 2023 创界科技 | 创新驱动未来</p>
        </footer>
    </div>

    <script>
        // 表单提交处理
        document.addEventListener('DOMContentLoaded', function () {
            const forgotPasswordForm = document.getElementById('forgotPasswordForm');
            const successMessage = document.getElementById('successMessage');
            const resendLink = document.getElementById('resendLink');

            forgotPasswordForm.addEventListener('submit', function (e) {
                e.preventDefault();

                // 简单的表单验证
                const email = document.getElementById('email').value;

                if (!email) {
                    alert('请输入您的注册邮箱');
                    return;
                }

                // 验证邮箱格式
                const emailRegex = /^[^\s@]+@[^\s@]+\.[^\s@]+$/;
                if (!emailRegex.test(email)) {
                    alert('请输入有效的邮箱地址');
                    return;
                }

                // 模拟发送重置链接过程
                alert('正在发送重置链接...');

                // 在实际应用中，这里应该发送请求到服务器
                // 这里使用setTimeout模拟异步请求
                setTimeout(function () {
                    // 显示成功消息
                    forgotPasswordForm.style.display = 'none';
                    successMessage.style.display = 'block';
                }, 1000);
            });

            // 重新发送链接
            resendLink.addEventListener('click', function (e) {
                e.preventDefault();
                alert('重新发送重置链接...');

                // 在实际应用中，这里应该重新发送请求到服务器
                setTimeout(function () {
                    alert('重置链接已重新发送，请检查您的邮箱。');
                }, 1000);
            });
        });
    </script>
</body>

</html>